const express=require("express");
const app=express();
const port=3001;
app.route("/book").get(function(req,res){
res.send("读取book信息");
}).post(function(req,res){
    res.send("新增book信息");
}).put(function(req,res){
    res.send("修改book信息");
});
const birds=require("./routes/05_birds");
app.use("/birds",birds);

app.listen(port,function(){
    console.log(`MyApp访问地址:http://127.0.0.1:${port}`);
});